<?php
	require_once('global.php');
	require_once('userdata.php');
	$result=GetUsers();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User management</title>
</head>
<body>

<h2>List of People</h2>
<table border="1">
	<tr>
    	<th>Actions</th>
        <th>Firstname</th>
        <th>LastName</th>
    </tr>
    <? while($rs= $result->fetch_assoc()){?>
    <tr>
    <td>
    <a href="Detail.php?id=<?=$rs['id']?>">View Details</a>
    
    </td>
    <td><?=$rs['FirstName']?></td>
    <td><?=$rs['LastName']?></td>
    </tr>
    
    <? } ?>
    
</table>
</body>
</html>